import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Frame;

import javax.swing.JFrame;
import javax.swing.JList;
import javax.swing.JPanel;


public class view_liste {

	private JFrame frame;
	
	private JPanel panel;
	
	private model_liste model_liste;
	private JList liste;
	
	/**
	 * Konstruktor
	 */
	public view_liste() {
		frame = new JFrame("Liste mit IO's");
		
		model_liste = new model_liste();
		
		liste = new JList(model_liste);
		
		
		panel = new JPanel(new BorderLayout());
		
		panel.add(liste);
		
		frame.add(panel);
		
		frame.setPreferredSize(new Dimension(400, 400));
		
		frame.pack();
		frame.setVisible(true);
		
		frame.setLocationRelativeTo(null);
		
		
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new view_liste(); 

	}

}
